package com.longe.controller;

import com.longe.dto.UserDTO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@Api(tags = "用户模块的相关接口")
@RestController
@RequestMapping("user")
public class UserController {

    @ApiOperation(value = "用户登录")
    @RequestMapping(value = "login", method = RequestMethod.POST)
    public Object login(@RequestBody UserDTO userDTO){

        Map<String, String> map = new HashMap<>();
        map.put("key", "value");
        return map;
    }

}
